PYTHON : EOFError: EOF when reading a line